package booroo.basic;

import java.util.Scanner;

public class J04_CardCheck {

	public static void main(String[] args) {
		Scanner sc=null;
		int num;
		sc=new Scanner(System.in);
		System.out.println("카드번호 6자리를 입력하세요 : ");
		num=sc.nextInt();
		
		if (num>=350000&&num<360000){
				switch (num){ 
				case 356317: System.out.println("NH농협카드(JCB카드)"); break;
				case 356901: System.out.println("신한카드(JCB카드)"); break;
				case 356912: System.out.println("신한카드(JCB카드)"); break;
				default: System.out.println("해당번호의 카드가 없습니다");
			}
		}
			else if	(num>=400000&&num<500000){
				switch (num){ 
				case 404825: System.out.println("비씨카드(비자카드)"); break;
				case 438676: System.out.println("신한카드(비자카드)"); break;
				case 457973: System.out.println("국민은행(비자카드)"); break;
				default: System.out.println("해당번호의 카드가 없습니다");
			}
			}
				else if (num>=500000&&num<600000){
					switch (num){ 
				case 515594: System.out.println("신한카드(마스타카드,Maestro)"); break;
				case 524353: System.out.println("외환카드(마스타카드,Maestro)"); break;
				case 540926: System.out.println("국민은행(마스타카드,Maestro)"); break;
				default: System.out.println("해당번호의 카드가 없습니다");
			}
		}
				else if (num<350000||num>600000){
					System.out.println("잘못 입력하셨습니다.");
				}
	}

	}


